import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const path = require("path");
export default defineConfig({
  plugins: [react()],
  alias: {
    "@": path.join(__dirname, "./src"),
  },

  server: {
    proxy: {
      "/api": {
        target: "http://123.56.149.216:8089/api",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, ""),
      },
    },
  },
});
